
/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"D54195D1-0C90-46EE-A167-60C0F585479E"}
 */
function cancelar(event) {
	databaseManager.revertEditedRecords()
	salir()
}

/**
 * @properties={typeid:24,uuid:"37CB73F2-01B2-45EC-9B57-61669353A2C8"}
 */
function salir() {
	databaseManager.setAutoSave(true)
	var $win = application.getWindow('ENSAYO_CARGA')
	$win.hide()
	$win.destroy()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"4B6F516D-54D2-4C82-8973-9BBF7EA41DB7"}
 */
function aceptar(event) {
	if (databaseManager.saveData() == true)
	{
		salir()
	}
	else
	{
		globals.DIALOGS.showErrorDialog('Error','Ocurrio un error al grabar','OK')
	}
}

